refactor: split normalizer/denormalizer#7713
Open
soyuka wants to merge 5 commits intoapi-platform:mainfrom
Open
refactor: split normalizer/denormalizer#7713soyuka wants to merge 5 commits intoapi-platform:mainfrom
soyuka wants to merge 5 commits intoapi-platform:mainfrom
Conversation
Member
soyuka
commented
Jan 28, 2026
| Q | A |
|---|---|
| Branch? | main |
| Tickets | prerequisite for #7710 |
| License | MIT |
| Doc PR | na |
a551716 to
ea40daf
Compare
| * @author Amrouche Hamza <hamza.simperfit@gmail.com> | ||
| * @author Baptiste Meyer <baptiste.meyer@gmail.com> | ||
| * | ||
| * @todo Denormalization methods should be deprecated in 5.x, use ItemDenormalizer instead |
Contributor
There was a problem hiding this comment.
Should ItemNormalizer::denormalize call ItemDenormalizer::denormalize to ensure that futur bugfix/feature will be done on both ?
Cause we're having duplicate code with denormalize no ?
| public const FORMAT = 'jsonapi'; | ||
|
|
||
| private array $componentsCache = []; | ||
| use ItemNormalizerTrait; |
Contributor
There was a problem hiding this comment.
Is there some methods to remove here ?
Like supportsDenormalization which is already in the trait if I read correctly
| * | ||
| * @throws NotNormalizableValueException | ||
| * | ||
| * @todo This method should be deprecated in 5.x, use ItemDenormalizer instead |
Contributor
There was a problem hiding this comment.
Same, could it call ItemDenormalizer::denormalize ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.